var e = require;
var t = module;
var o = exports;
var n = o;
Object.defineProperty(n, "__esModule", {value: !0});
var i = (function () {
    function e() {
        (this._isLoadComplete = !1),
            (this._loadAutoShow = !1),
            (this._onLoadCallbackRef = null),
            (this._onCloseCallbackRef = null),
            (this._onErrorCallbackRef = null);
    }
    return (
        (e.prototype.init = function () {
            console.log("gamePortal init"),
                (this._onLoadCallbackRef = this.onGamePortalLoad.bind(this)),
                (this._onCloseCallbackRef = this.onGamePortalClose.bind(this)),
                (this._onErrorCallbackRef = this.onGamePortalError.bind(this)),
                this.createGamePortal(!1);
        }),
        (e.prototype.showGamePortal = function (e, t) {
            console.log("showGamePortal"), (this._showCallback = e), (this._failCallback = t);
        }),
        (e.prototype.destroyGamePortal = function () {
            console.log("destoryGamePortal"),
                (this._showCallback = null),
                (this._failCallback = null),
                (this._isLoadComplete = !1),
                (this._loadAutoShow = !1);
        }),
        e
    );
})();
n.default = i;
